//index.js

Page({
  data: {
    databean:''
  },
  //事件处理函数
  getData: function() {
    let that = this;
    wx.request({
      url: 'http://localhost:8080/hello',
      success(res){
        that.setData({
          databean:res.data
        })
      }
    })
  }
 
})
